package day2;
import java.util.Date;
import java.text.DateFormat;
public class StringFormatWidthAndPaddingExample {

    public static void main(String[] args) {
      Date currentDate = new Date();
      DateFormat dateFormat = DateFormat.getDateInstance();
      String formattedDate = dateFormat.format(currentDate);
      System.out.println(formattedDate);
    }

}
